<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:composite="http://xmlns.jcp.org/jsf/composite"
	  xmlns:p="http://primefaces.org/ui"
	  xmlns:axis="http://xmlns.jcp.org/jsf/composite/axis"
	  xmlns:legend="http://xmlns.jcp.org/jsf/composite/legend"
	  xmlns:title="http://xmlns.jcp.org/jsf/composite/title"
	  xmlns:model="http://xmlns.jcp.org/jsf/composite/model"
	  xmlns:highlighter="http://xmlns.jcp.org/jsf/composite/highlighter"
	  xmlns:grid="http://xmlns.jcp.org/jsf/composite/grid"
	  xmlns:series="http://xmlns.jcp.org/jsf/composite/series"
	  xmlns:util="http://xmlns.jcp.org/jsf/composite/util">

	<composite:interface>
		<composite:attribute name="model" required="true" type="org.plotfaces.model.Model"/>
		<composite:attribute name="collapseHandler" required="true" type="org.plotfacesdemo.CollapseHandler"/>
		<composite:attribute name="plot" required="true" type="java.lang.String"/>
	</composite:interface>

    <composite:implementation>
		<!--
			All message resources should have the _model suffix.
		-->

		<p:tabView id="mainTabs">
			<p:tab id="modelTab" title="#{msg.chartOptions}">
				<p:panel id="rendererSettings">
					<model:general model="#{cc.attrs.model}" collapseHandler="#{cc.attrs.collapseHandler}" plot="#{cc.attrs.plot}"/>
				</p:panel>
			</p:tab>
			<p:tab id="axesTab" title="#{msg.axesOptions}">
				<p:panel id="axesSettings">
					<axis:axes model="#{cc.attrs.model}" collapseHandler="#{cc.attrs.collapseHandler}" plot="#{cc.attrs.plot}"/>
				</p:panel>
			</p:tab>
			<p:tab id="legendTab" title="#{msg.legendOptions}">
				<p:panel id="legendSettings">
					<legend:legend legend="#{cc.attrs.model.legend}" collapseHandler="#{cc.attrs.collapseHandler}" plot="#{cc.attrs.plot}"/>
				</p:panel>
			</p:tab>
			<p:tab id="titleTab" title="#{msg.titleOptions}">
				<p:panel id="titleSettings">
					<title:title title="#{cc.attrs.model.title}" collapseHandler="#{cc.attrs.collapseHandler}" plot="#{cc.attrs.plot}"/>
				</p:panel>
			</p:tab>
			<p:tab id="highlighterTab" title="#{msg.highlighterOptions}">
				<p:panel id="highlighterSettings">
					<highlighter:highlighter highlighter="#{cc.attrs.model.highlighter}" collapseHandler="#{cc.attrs.collapseHandler}" plot="#{cc.attrs.plot}"/>
				</p:panel>
			</p:tab>
			<p:tab id="gridTab" title="#{msg.gridOptions}">
				<p:panel id="gridSettings">
					<grid:grid grid="#{cc.attrs.model.grid}" collapseHandler="#{cc.attrs.collapseHandler}" plot="#{cc.attrs.plot}"/>
				</p:panel>
			</p:tab>
			<p:tab id="seriesTab" title="#{msg.seriesOptions}">
				<p:panel id="seriesSettings">
					<series:seriesMaster model="#{cc.attrs.model}" collapseHandler="#{cc.attrs.collapseHandler}" plot="#{cc.attrs.plot}"/>
				</p:panel>
			</p:tab>
			<p:tab id="utilTab" title="#{msg.utilities}">
				<util:util model="#{cc.attrs.model}" collapseHandler="#{cc.attrs.collapseHandler}" plot="#{cc.attrs.plot}"/>
			</p:tab>
			<!--<p:tab id="rendererTab" title="#{msg.rendererOptions}">
				<p:panel id="rendererSettings">
					<ui:include src="renderer.xhtml"/>
				</p:panel>
			</p:tab>-->
		</p:tabView>
	</composite:implementation>
</html>

